package com.kmust.dream.wanderingdream.donation.service.impl;

import com.kmust.dream.wanderingdream.comm.utils.PageUtils;
import com.kmust.dream.wanderingdream.comm.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.kmust.dream.wanderingdream.donation.dao.DonationMoneyDao;
import com.kmust.dream.wanderingdream.donation.entity.DonationMoneyEntity;
import com.kmust.dream.wanderingdream.donation.service.DonationMoneyService;

@Deprecated
@Service("donationMoneyService")
public class DonationMoneyServiceImpl extends ServiceImpl<DonationMoneyDao, DonationMoneyEntity> implements DonationMoneyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DonationMoneyEntity> page = this.page(
                new Query<DonationMoneyEntity>().getPage(params),
                new QueryWrapper<DonationMoneyEntity>()
        );

        return new PageUtils(page);
    }

}